package com.yuw.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yuw.bean.AdminInfoBean;
import com.yuw.dao.IAdminInfoDao;
import com.yuw.service.ILoginService;

@Service("loginS")
public class LoginServiceImpl implements ILoginService {
	// 依赖注入【反转控制】
	// 面向接口的编程
	@Resource
	private IAdminInfoDao loginD; // 按类型匹配进行注入

	@Override
	public List<AdminInfoBean> queryLoginInfo(AdminInfoBean adminB) {
		// 测试调用
		AdminInfoBean adminB2 = loginD.selectByPrimaryKey(1);
		System.out.println("查询结果：");
		System.out.println(adminB2);
		return null;
	}

}
